package com.qcxk.yuqian.rtu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.qcxk.yuqian.system.entity.Dept;
import lombok.Data;

/**
 * @auther lp
 * @create 2021-11-15 03:16:56
 * @describe 实体类
 */
@Data

@TableName("area")
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("ctime")
    private String ctime;

    @TableField("name")
    private String name;

    @TableField("p_id")
    private Integer pId;
    @TableField(exist = false)
    private List<Area> childList = new ArrayList<Area>();
    /**
     * 逻辑删除标识
     */
    @TableLogic
    @TableField("deleted")
    private Integer deleted;


}
